﻿using System;
using Entitas.Unity;
using Script.Manager;
using UnityEngine;

public class BulletView : View, IPhysics
{
    [SerializeField] private Rigidbody2D _rb2;

    public Rigidbody2D rb2 => _rb2;

    protected override void OnDestoryEntityHandler ()
    {
        PoolManager.Instance.Recycle (this, ActorTag.Bullet);
    }
}